<template>
	<div>
		<el-card class="box-card">
			<div class="text item">
				<div class="hoverdivClass" v-for="(value, key) in propertyList" :key="key">
					<el-form ref="form" label-position="left">
						<template v-if="key !== 'branchShareList' && titleList[key]">
							<el-form-item :label="titleList[key]">
								<el-input v-model="propertyList[key]" type="textarea"></el-input>
							</el-form-item>
						</template>
					</el-form>
				</div>
			</div>
		</el-card>
	</div>
</template>
<script>
export default {
	props: {
		getData: {
			type: Function,
			default: Function
		}
	},
	data() {
		return {
			titleList: {
				addcreditMeasureType: '增信措施类别',
				annuityPlanType: '企业年金计划类型',
				annuityTrusteeMode: '企业年金受托模式',
				approvalSymbol: '核准文号',
				currencyMarketFundFlag: '是否货币市场基金（人行二期）',
				ensureObligorCode: '保障义务人代码',
				ensureObligorName: '保障义务人名称',
				evolveBeforeCode: '转型前产品正式代码',
				expectRaiseAmount: '预期募集金额',
				faceValue: '面值（单位:元）',
				fiduciaryDuty: '受托责任',
				fundCode: '基金代码（六位）/产品代码（六位）',
				fundEnglishName: '产品英文名称',
				fundFullName: '产品名称',
				fundName: '产品简称',
				fundOutsideCode: '协会代码',
				fundType: '产品类别',
				gradingRatio: '分级比例',
				incomeDisWay: '收益分配方式',
				innovateNatureRemark: '创新属性',
				investTactics: '投资策略',
				isActiveManage: '是否为主动管理',
				isAddcreditMeasure: '产品资产是否存在增信措施（人行二期）',
				isAnnuityPension: '是否企业年金',
				isBasicPension: '是否基本养老金',
				isBreakeven: '是否保本',
				isChannelBusiness: '是否通道类业务',
				isEtfJoinFund: '是否ETF联接基金',
				isGradFund: '分级基金类型',
				isHoldFund: '是否持有期基金',
				isHolderMeet: '是否设立持有人大会',
				isIndexFund: '是否指数基金',
				isInnovateNature: '是否具备创新属性',
				isInstAcc: '是否分期账户',
				isListTransfer: '是否挂牌转让',
				isMarketTrade: '是否上市交易',
				isMom: '是否MOM',
				isMutualFund: '是否内地互认基金',
				isNetWorthProduct: '是否净值型产品',
				isOccupationalPension: '是否职业年金',
				isOrganCustom: '是否机构定制基金',
				isPensionProduct: '是否养老金产品',
				isPensionTargetFund: '是否养老目标基金',
				isPrivateFund: '是否私募基金',
				isQdii: '是否QDII',
				isRiskTacticsFund: '是否避险策略基金',
				isSingleShare: '是否单一份额',
				isSocialSecurity: '是否社保基金',
				isStructuredProduct: '是否结构化产品',
				isSubAssets: '是否子资产单元',
				issuerEarlyTermFlag: '是否有发行机构提前终止权（人行二期）',
				managerStyle: '管理方式（人行二期）',
				marketFundType: '上市基金类型',
				marketTradeSite: '上市交易场所',
				mixedInvestBias: '混合型细分类',
				momFundCode: '管理人中管理人产品代码',
				oneYardPassAccount: '一码通账户账号',
				openFrequency: '开放频率 / 开放频率（证监）',
				openFrequencyRemark: '开放频率备注 / 开放频率（证监）备注',
				operateMode: '运作方式',
				organCustom: '定制机构信息',
				performanceBaseline: '业绩比较基准',
				planType: '计划类型',
				pobcFundType: '产品类型（人行二期）',
				privateFundType: '私募基金类别',
				productBrand: '产品品牌（人行二期）',
				productPeriod: '产品期次（人行二期）（四位）',
				remark: '备注',
				revenueFeature: '收益特征',
				riskGrade: '风险等级',
				settleCurrency: '结算币种',
				targetFundCode: '目标基金代码',
				targetFundName: '目标基金名称',
				usufructTransferProductFlag: '是否收益权转让产品（人行二期）',
				valuationFrequency: '估值频率',
				valuationWay: '估值方法',
				subFundType: '下属基金类型',
				isSponsoredFund: '是否发起式基金',
				sponsoredSelfCapital: '发起式自有资金',
				sponsoredAgreedTerm: '发起式约定年限',
				isFofFund: '是否FOF基金',
				establishScale: '成立规模',
				newspaperId: '报社',
				productAssetType: '产品类型-资产投向',
				productSpecialType: '产品类型-专项',
				productAssetReportType: '产品类型（证监会资管月报）',
				isSpecialAssetReport: '是否专项（证监会资管月报）',
				isAssetSecuritizationBusiness: '是否资产证券化业务（证监会资管月报）',
				isAssetManagementProduct: '是否为资管产品投资单一项目或证券（证监会资管月报）',
				addCreditOrganType: '增信机构类型（人行二期）',
				addCreditFormType: '增信形式（人行二期）',
				shareCategory: '下属份额-份额类别',
				estimatedRaisedAmount: '下属份额-预期募集金额',
				estimatedAnnualRate: '下属份额-预计年收益率',
				customerRedemptionFlag: '客户赎回权标识',
				associationOpenFrequency: '开放频率（协会）',
				noneHKTIsStopApplyRansom: '非港股通交易日是否暂停申赎',
				crossBorderFinancial: '跨境理财通（人行）',
				propertyFundTrust: '以财产权信托名义开展的资金信托（人行）'
			},
			propertyList: {
				addcreditMeasureType: '',
				annuityPlanType: '',
				annuityTrusteeMode: '',
				approvalSymbol: '',
				currencyMarketFundFlag: '',
				ensureObligorCode: '',
				ensureObligorName: '',
				evolveBeforeCode: '',
				expectRaiseAmount: '',
				faceValue: '',
				fiduciaryDuty: '',
				fundCode: '',
				fundEnglishName: '',
				fundFullName: '',
				fundName: '',
				fundOutsideCode: '',
				fundType: '',
				gradingRatio: '',
				incomeDisWay: '',
				innovateNatureRemark: '',
				investTactics: '',
				isActiveManage: '',
				isAddcreditMeasure: '',
				isAnnuityPension: '',
				isBasicPension: '',
				isBreakeven: '',
				isChannelBusiness: '',
				isEtfJoinFund: '',
				isGradFund: '',
				isHoldFund: '',
				isHolderMeet: '',
				isIndexFund: '',
				isInnovateNature: '',
				isInstAcc: '',
				isListTransfer: '',
				isMarketTrade: '',
				isMom: '',
				isMutualFund: '',
				isNetWorthProduct: '',
				isOccupationalPension: '',
				isOrganCustom: '',
				isPensionProduct: '',
				isPensionTargetFund: '',
				isPrivateFund: '',
				isQdii: '',
				isRiskTacticsFund: '',
				isSingleShare: '',
				isSocialSecurity: '',
				isStructuredProduct: '',
				isSubAssets: '',
				issuerEarlyTermFlag: '',
				managerStyle: '',
				marketFundType: '',
				marketTradeSite: '',
				mixedInvestBias: '',
				momFundCode: '',
				oneYardPassAccount: '',
				openFrequency: '',
				openFrequencyRemark: '',
				operateMode: '',
				organCustom: '',
				performanceBaseline: '',
				planType: '',
				pobcFundType: '',
				privateFundType: '',
				productBrand: '',
				productPeriod: '',
				remark: '',
				revenueFeature: '',
				riskGrade: '',
				settleCurrency: '',
				targetFundCode: '',
				targetFundName: '',
				usufructTransferProductFlag: '',
				valuationFrequency: '',
				valuationWay: '',
				subFundType: '',
				isSponsoredFund: '',
				sponsoredSelfCapital: '',
				sponsoredAgreedTerm: '',
				isFofFund: '',
				establishScale: '',
				newspaperId: '',
				productAssetType: '',
				productSpecialType: '',
				productAssetReportType: '',
				isSpecialAssetReport: '',
				isAssetSecuritizationBusiness: '',
				isAssetManagementProduct: '',
				addCreditOrganType: '',
				addCreditFormType: '',
				shareCategory: '',
				estimatedRaisedAmount: '',
				estimatedAnnualRate: '',
				customerRedemptionFlag: '',
				associationOpenFrequency: '',
				noneHKTIsStopApplyRansom: '',
				crossBorderFinancial: '',
				propertyFundTrust: ''
			}
		}
	},
	methods: {
		// 保存
		saveSetings() {
			if ('branchShareList' in this.propertyList) {
				this.$delete(this.propertyList, 'branchShareList')
			}
			return this.propertyList
		},
		// 数据回显
		edit(data) {
			const obj = JSON.parse(JSON.stringify(data))
			this.propertyList = { ...this.propertyList, ...obj }
			for (const i in this.propertyList) {
				if (!this.propertyList[i]) {
					this.propertyList[i] = ''
				}
			}
		}
	}
}
</script>
<style lang="scss" scoped >
</style>
